package com.pig.consume.client;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author by 李志伟
 * Create Date: 2019/2/13 20:46
 * Description:
 */
public class ResultManager {
    private static Map<String, String> resultMap = new ConcurrentHashMap<>();
    public static void put(String uuid,String result) {
        resultMap.put(uuid, result);
    }
    public static String get(String uuid) {
        if (resultMap.containsKey(uuid)) {
            return resultMap.remove(uuid);
        }
        return null;
    }

}
